using System.Collections.Generic;

namespace ERP.ERPSystem.ProductionSystem.Dto
{
    /// <summary>
    /// 物料分类树形结构DTO
    /// </summary>
    public class MaterialTypeTreeDto
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int? Index { get; set; }

        /// <summary>
        /// 是否展开
        /// </summary>
        public bool Spread { get; set; } = true;

        /// <summary>
        /// 子节点
        /// </summary>
        public List<MaterialTypeTreeDto> Children { get; set; } = new List<MaterialTypeTreeDto>();
    }
} 